package com.gwt.client.ui.widget;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;

public class Footer extends Composite {

	private static final String footerText = "Intro to GWT -- ";
	private String slideId;
	
	private Label label;
	
	public Footer() {
		label = new Label();
		label.setHorizontalAlignment(Label.ALIGN_CENTER);
		
		initWidget(label);
	}
	
	public void setSlideId(String slideId){
		this.slideId = slideId;
	}
	
	@Override
	protected void onLoad() {
		label.setText(footerText + slideId);
	}

}
